package com.vj.factory;

import com.vj.dao.BookDao;
import com.vj.dao.impl.BookDaoImpl;
import org.springframework.beans.factory.FactoryBean;

public class BookDaoFactoryBean implements FactoryBean<BookDao> {

    public BookDao getObject() throws Exception {
        System.out.println("call FactoryBean");
//        return new BookDaoImpl();
        return null;
    }

    public Class<?> getObjectType() {
        return BookDao.class;
    }
}
